<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var str = ""
        console.log(Boolean(str));

        var num = "11.23px"
        console.log(parseInt(num));

        var num = "11.23px"
        console.log(parseFloat(num));
    </script>
</body>
</html>